/**
* Oxide
*
* Copyright (c) 2011 Dinosaur Kick Pty Ltd, All rights reserved.
*
* This source code is made available under the "Modified BSD" licensing arrangement.
* See license.txt for details.
*/
// ----------------------------------------------------------------------------

string_literal_ptr parse_string(void)
{
	assert(m_cursor->identity == TOK_STRING);
	string_literal_ptr string = boost::make_shared<string_literal_type>(m_cursor->content);
	m_cursor.advance();
	return string;
}

// ----------------------------------------------------------------------------

integer_literal_ptr parse_integer(void)
{
	assert(m_cursor->identity == TOK_INTEGER_DEC); // TODO, fix for other bases
	return parse_with_lexical_cast<integer_literal_type>();
}

// ----------------------------------------------------------------------------

float_literal_ptr parse_float(void)
{
	assert(m_cursor->identity == TOK_FLOAT);
	return parse_with_lexical_cast<float_literal_type>();
}

// ----------------------------------------------------------------------------

fixed_literal_ptr parse_fixed(void)
{
	assert(m_cursor->identity == TOK_FIXED);
	return parse_with_lexical_cast<fixed_literal_type>();
}

// ----------------------------------------------------------------------------
